
	* ------------------------------------------------------------------------------
	* Project: School Discipline Disparities Increase when Neighborhood Black Pop Changes
	* Authors: Candipan & Hailey
	* ------------------------------------------------------------------------------
	* PURPOSE: 
	* This script defines a program that labels variables in the final analysis file
	* ------------------------------------------------------------------------------
		
		capture program drop labelvariables
		program define labelvariables
		
			*Label variables 
			lab var typeb "Neigh Pct Black Type"
			lab var samp "in-sample indicator"
			lab var majnhw "Neigh Majority White (50 pct)"
			lab var majnhw2 "Neigh Majority White (60 pct)"
			lab var predom "Initially Predominantly White (70 pct)"
			lab var irr_oss_blwh2 "Black-White OSS Rate Ratio (top coded)"
			lab var irr_oss_blwh "Black-White OSS Rate Ratio (unadjusted zeros)"
			lab var diff_oss_blwh "Black-White OSS Rate Diff (-1 to 1)"
			lab var diff_oss_blwh2 "Black-White OSS Rate Diff (-100 to 100)"
			lab var c_diff_oss_blwh2 "change in Black-White Rate Difference (2010-18)"
			lab var c_oss_rate_bl "Change in Black OSS Rate (2010-18)"
			lab var c_oss_rate_wh "Change in White OSS Rate (2010-18)"		
			lab var idschooln "unique school ID (nces)"
			lab var idschool "unique school ID (nces)"
			lab var idsd "7-digit district id (leaid)"
			lab var nwaves "number of waves per school"
			lab var met_nhw "metro non-hispanic white pop"
			lab var met_nhb "metro non-hispanic black pop"
			lab var met_hisp "metro hispanic pop"
			lab var met_phisp "metro prop hisp"
			lab var met_pnhw "metro prop white"
			lab var met_pnhb "metro prop black"
			lab var statefips "State FIPS code"
			lab var statename "state name"
			lab var changeblk "change in prop neigh black (2010-18)"
			lab var bpblack "baseline school prop black"
			lab var bpwhite "baseline school prop white"
			lab var bphisp "baseline school prop hisp"
			lab var bpfrpl "baseline school prop free lunch"
			
		end
		